package com.gopay.common.constants.cps;
/**
 * CLASSNAME:AcctType
 * Description:账户类型枚举
 * DATE:2018/4/17/017
 * AUTHER:PANSHICHAO
 * www.gopay.com.cn Inc.All rights reserved.
 */
public enum AcctType {
    PUB_NON_PASSBOOK("11"),
    PUB_PASSBOOK("12"),
    DEDIT_TO_RPI_BANK("21"),
    CREDIT_TO_RPI_BANK("22"),
    QUASI_CREDIT_TO_RPI_BANK("23"),
    PRIVATE_PASSBOOK("24");

    public String value;
    /**
     * 翻译
     * @param value
     * @return
     */
    public static String translate(String value){
        String name=null;

        if(value.equals(PUB_NON_PASSBOOK.value)){
            name="非存折";
        }else if(value.equals(PUB_PASSBOOK.value)){
            name="存折";
        }else if(value.equals(DEDIT_TO_RPI_BANK.value)){
            name="个人银行借记";
        }else if(value.equals(CREDIT_TO_RPI_BANK.value)){
            name="个人银行贷记";
        }else if(value.equals(QUASI_CREDIT_TO_RPI_BANK.value)){
            name="个人银行准贷记";
        }else if(value.equals(PRIVATE_PASSBOOK.value)){
            name="存折";
        }

        return name;
    }
    AcctType(String value){
        this.value=value;
    }

}
